﻿#ifndef MYHARMBAR_H
#define MYHARMBAR_H

#include "qcustomplot.h"
#pragma execution_character_set("utf-8")
class MyHarmBar : public QCustomPlot
{
    Q_OBJECT
public:
    explicit MyHarmBar(QWidget *parent = nullptr);
    /***
     * harmData 指向谐波数据数组的指针（谐波幅值数据，不需要换算成百分比）
     * dataLen harmData的长度
    ***/
    void setData(double* harmData,int dataLen);
private:
    void init_plotSlot(int harmNum);
    void dealDrawBarChart(QVector<double> xBarVector, QVector<double> yBarVector);
signals:

public slots:
};

#endif // MYHARMBAR_H
